import http from '../http'
export const login = (data) => {
	return http({
		url:'/user/login',
		method:'post',
		data
	}).catch(err => err)
}

export const checkPosition = (data) => {
	return http({
		url:'/check-out/in-out/position',
		method:'get',
		data
	})
}

export const checkIn = (data) => {
	return http({
		url:'/check-out/in-out/check-in',
		method:'get',
		data
	})
}
export const getBeginAndEndTime = () => {
	return http({
		url:'/check-out/in-out/record-simple',
		method:'get'
	})
}
export const getCheckList = (data) => {
	return http({
		url:'/check-out/in-out/record-full',
		method:'get',
		data
	})
}
export const getCheckInfo = (id) => {
	return http({
		url:`/check-out/in-out/find/id/${id}`,
		method:'get'
	})
}